<?php

header("Location: loan.php");

?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>PhilBSD</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="icon" href="img/icons/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="img/icons/favicon.ico" type="image/x-icon">


<script type="text/javascript" src="js/prototype.js"></script>

<script type="text/javascript" src="js/scriptaculous.js"></script>
<script type="text/javascript" src="js/builder.js"></script>
<script type="text/javascript" src="js/effects.js"></script>
<script type="text/javascript" src="js/dragdrop.js"></script>
<script type="text/javascript" src="js/controls.js"></script>

<script type="text/javascript" src="js/sound.js"></script>
<script type="text/javascript" src="js/validation.js"></script>
<script type="text/javascript" src="js/js.js"></script>
<script type="text/javascript" src="js/translate.js"></script>
<script type="text/javascript" src="js/hash.js"></script>
<script type="text/javascript" src="js/events.js"></script>
<script type="text/javascript" src="js/loader.js"></script>
<script type="text/javascript" src="js/grid.js"></script>
<script type="text/javascript" src="js/tabs.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript" src="js/accordion.js"></script>
<script type="text/javascript" src="js/tools.js"></script>
<script type="text/javascript" src="js/bundle.js"></script>
<script type="text/javascript" src="js/uploader.js"></script>



<style type="text/css" media="all">
	/*<![CDATA[*/ @import "css/styles.css"; /*]]>*/
</style>

<!--[if IE]>
<link rel="stylesheet" href="css/iestyles.css" type="text/css" media="all" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="css/below_ie7.css" type="text/css" media="all" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" href="css/ie7.css" type="text/css" media="all" />
<![endif]-->
    
<link rel="stylesheet" type="text/css" media="screen, projection" href="css/menu.css">
<link rel="stylesheet" type="text/css" media="all" href="css/calendar-win2k-1.css" title="win2k-1">

</head>

<body id="html-body">
<div class="wrapper">
  <div class="header">
    <div class="header-top">
      <a href="index.php"><img src="img/logo.gif" alt="PhilBSD Logo" class="logo"></a>
        <div class="header-right">
          <p class="super">
            Logged in as admin<span class="separator">|</span>Today is February 26, 2008<span class="separator">|</span><a href="logout.php" class="link-logout">Log Out</a>
          </p>
        </div>
		</div>
        <div class="clear"></div>

		<!-- menu start -->
		<div class="nav-bar">
		    <ul id="nav">
				<li class="level0">
					<a href="http://localhost/magento/index.php/admin/dashboard/" class="">
					<span><img src="img/fam_house.gif" alt="Home"> Home</span>
		            </a>
				</li>
		        <li onmouseover="Element.addClassName(this,'over')" onmouseout="Element.removeClassName(this,'over')" class="parent level0">
					<a href="#" onclick="return false" class="">
		                <span><img src="img/fam_creditcards.gif" alt="Loan Center"> Loan Center</span>
		            </a>
					<ul>
						<li class="level1">
							<a href="users.php" class="">
								<span>Contact Information</span>
							</a>
						</li>
		                <li class="level1">
							<a href="maintenance.php" class="">
								<span>Business Information</span>
							</a>
						</li>
		                <li class="level1">
							<a href="configuration.php" class="">
								<span>Collateral Items</span>
							</a>
						</li>
		                <li class="level1">
							<a href="#" onclick="return false" class="">
								<span>Loan</span>
							</a>
						</li>
	                	     <li class="level1">
							<a href="#" onclick="return false" class="">
								<span>Payments</span>
							</a>
						</li>
		            </ul>
				</li>
				<li class="level0">
					<a href="http://localhost/magento/index.php/admin/dashboard/" class="">
						<span>Financial Statement Center</span>
		            </a>
				</li>
				<li class="level0">
					<a href="http://localhost/magento/index.php/admin/dashboard/" class="">
						<span>Employee Center</span>
		            </a>
				</li>
				<li class="level0">
					<a href="http://localhost/magento/index.php/admin/dashboard/" class="">
						<span>Report Center</span>
		            </a>
				</li>
				<li class="level0">
					<a href="http://localhost/magento/index.php/admin/dashboard/" class="">
						<span>Maintenance</span>
		            </a>
				</li>
				<li class="level0">
					<a href="http://localhost/magento/index.php/admin/dashboard/" class="">
						<span>Help</span>
		            </a>
				</li>
			</ul>
		</div>
		<!-- menu end -->

	</div>

    

    <div class="middle">
		<div class="simple-container-left" id="page:main-container">
			<div class="container" id="page:container">
				<div class="main">
					<div class="content-container">
						<div class="content" id="content">
							<div id="messages"></div>
							<div class="content-header">
								<table class="grid-header" cellspacing="0">
									<tbody>
										<tr>
											<td style=""><h3 class="icon-head head-customer">New Customer</h3></td>
											<td class="a-right"><button id="id_889e6f5195ef3d9b220a8dcd54b02170" type="button" class="scalable back" onclick="setLocation('http://localhost/magento/index.php/admin/customer/')" style=""><span>Back</span></button><button id="id_889e6f5195ef3d9b220a8dcd54b02170" type="button" class="scalable" onclick="setLocation(window.location.href)" style=""><span>Reset</span></button><button id="id_889e6f5195ef3d9b220a8dcd54b02170" type="button" class="scalable save" onclick="editForm.submit();" style=""><span>Save Customer</span></button></td>
										</tr>
									</tbody>
								</table>
							</div>
							<div class="entry-edit">
								<form id="edit_form" action="/" method="post">
									<div id="customer_info_tabs_account_content" style="">
										<div class="entry-edit">
											<div>
												<h4 class="icon-head head-edit-form fieldset-legend">Contact Information</h4>
												<fieldset id="_accountbase_fieldset">


<table class="form-list" cellspacing="0">
<tbody>
<tr>
    <td>

    <table cellspacing="0">
<tbody>
<tr>
        <td class="label"><img src="img/no_photo.jpg" width="96" height="96" /></td>
    <td><label for="_accountphoto">Photo <span class="required">*</span></label><input id="_accountphoto" name="account[photo]" value="" class="required-entry required-entry input-text" type="file"></td>
	</tr>
															<tr>
        <td class="label"><label for="_accountlastname">Last Name <span class="required">*</span></label></td>
    <td><input id="_accountlastname" name="account[lastname]" value="" class="required-entry required-entry input-text" type="text"></td>
	</tr>
	<tr>
	<td class="label"><label for="_accountfirstname">First Name <span class="required">*</span></label></td>
    <td><input id="_accountfirstname" name="account[firstname]" value="" class="required-entry required-entry input-text" type="text"></td>
	</tr>
	<tr>
		<td class="label"><label for="_accountmiddlename">Middle Name</label></td>
    <td><input id="_accountmiddlename" name="account[middlename]" value="" class="required-entry required-entry input-text" type="text"></td>
    </tr>
	<tr>
	<td class="label"><label for="_accountphoto">Photo <span class="required">*</span></label></td>
    <td><input id="_accountphoto" name="account[photo]" value="" class="required-entry required-entry input-text" type="file"></td>
	</tr>
	<tr>
	<td class="label"><label for="_accountaddress">Address <span class="required">*</span></label></td>
    <td><input id="_accountaddress" name="account[address]" value="" class="required-entry required-entry input-text" type="text"></td>
	</tr>
	<tr>
        <td class="label"><label for="_accountbarangay_id">Barangay <span class="required">*</span></label></td>
    <td><select id="_accountbarangay_id" name="account[barangay_id]" class="required-entry required-entry select" type="select">
<option value="1">Barangay 1</option>
<option value="2">Barangay 2</option>
<option value="3">Barangay 3</option>
</select></td>
    </tr>
	<tr>
        <td class="label"><label for="_accountcity_id">City <span class="required">*</span></label></td>
    <td class="input-ele"><select id="_accountcity_id" name="account[city_id]" class="required-entry required-entry select" type="select">
<option value="1">Tubigon</option>
<option value="2">Tagbilaran</option>
</select></td>
    </tr>
	<tr>
        <td class="label"><label for="_accountcountry_id">Country <span class="required">*</span></label></td>
    <td><select id="_accountcountry_id" name="account[country_id]" class="required-entry required-entry select" type="select">
<option value="1">Philippines</option>
<option value="2">Russia</option>
<option value="3">USA</option>
</select></td>
    </tr>
    </tbody>
    </table>

    </td>
    <td>

    <table cellspacing="0">
<tbody>



	<tr>
	<td class="label"><label for="_accountphone">Phone <span class="required">*</span></label></td>
    <td><input id="_accountphone" name="account[phone]" value="" class="required-entry required-entry input-text" type="text"></td>
	</tr>
	<tr>
	<td class="label"><label for="_accountmobile">Mobile </label></td>
    <td><input id="_accountmobile" name="account[mobile]" value="" class="required-entry required-entry input-text" type="text"></td>
	</tr>
<tr>
        <td class="label"><label for="_accountbirthdate">Birthdate <span class="required">*</span></label></td>
    <td><input id="_accountbirthdate" name="account[birthdate]" value="" class="required-entry required-entry input-text" type="text"></td>
    </tr>
	<tr>
        <td class="label"><label for="_accountgender">Gender <span class="required">*</span></label></td>
    <td><select id="_accountgender" name="account[gender]" class="required-entry required-entry select" type="select">
<option value="1">Male</option>
<option value="2">Female</option>
</select></td>
    </tr>
	<tr>
        <td class="label"><label for="_accountcivil_status">Civil Status <span class="required">*</span></label></td>
    <td><select id="_accountcivil_status" name="account[civil_status]" class="required-entry required-entry select" type="select">
<option value="1">Single</option>
<option value="2">Married</option>
<option value="3">Divorced</option>
<option value="4">Separated</option>
<option value="5">Widowed</option>
</select></td>

    </tr>
        </tbody></table>

        </td>
        </tr>
        </tbody>
        </table>
    </fieldset>
</div>

<!--
	<div>
    <h4 class="icon-head head-edit-form fieldset-legend">Password Management</h4>
    <fieldset id="_accountpassword_fieldset">
        <table class="form-list" cellspacing="0">
    <tbody><tr><td class="label"><label for="_accountpassword">Password <span class="required">*</span></label>
</td><td><input id="_accountpassword" name="account[password]" value="" class="input-text required-entry validate-password required-entry input-text" type="text">
</td></tr>
<tr><td class="label"><label>&nbsp;</label></td><td>or</td></tr>
<tr><td class="label"><label>&nbsp;</label></td><td><input name="account[password]" value="auto" onclick="setElementDisable('_accountpassword', this.checked)" type="checkbox">&nbsp;<label class="normal">Send auto-generated password</label></td></tr>
        </tbody></table>
    </fieldset>
</div>-->

</div>
</div><div id="customer_info_tabs_addresses_content" style="display: none;"><!-- Addresses list -->
<table class="form-edit" cellspacing="0">
<tbody><tr>
<td class="address-list">
    <div class="box-head-left">
        <h4 class="icon-head head-customer-address-list">Customer Addresses</h4>
        <div class="clear"></div>
        <button id="add_address_button" type="button" class="scalable add" onclick="customerAddresses.addNewAddress()" style=""><span>Add New Address</span></button>    </div>
    <ul id="address_list">
            </ul>
</td>
<td>
<!-- Addresses forms -->
    <div class="entry-edit" id="address_form_container">
                    <div id="no_address_message">This customer has no saved addresses.</div>
            </div>


    <!-- Template for adding address item to list -->
        <div id="address_item_template" class="no-display template">
        <a href="#" class="btn-remove-address">
            <img src="img/icon_remove_address.gif" alt="Remove address" id="delete_button1">
        </a>
        <a href="#" id="select_button" class="btn-edit-address">
            <img src="img/icon_edit_address.gif" alt="Edit address">
        </a>
        <address>New Customer Address</address>
        <div class="address-type">
            <span class="address-type-line">
                <input value="_template_" id="address_item_billing_template_" name="account[default_billing]" title="Set as Default Billing Address" type="radio">
                &nbsp;<label for="address_item_billing_template_">Default Billing Address</label>
            </span>
            <span class="address-type-line">
                <input value="_template_" id="address_item_shipping_template_" name="account[default_shipping]" title="Set as Default Shipping Address" type="radio">
                &nbsp;<label for="address_item_shipping_template_">Default Shipping Address</label>
            </span>
        </div>
    </div>

    <!-- Address form template -->
    <div id="address_form_template" class="no-display template">
        <div>
    <h4 class="icon-head head-edit-form fieldset-legend">Edit Customer's Address</h4>
    <fieldset id="_template_address_fieldset">
        <table class="form-list" cellspacing="0">
    <tbody><tr>
        <td class="label"><label for="_template_firstname">First Name <span class="required">*</span></label></td>
    <td><input id="_template_firstname" name="address[_template_][firstname]" value="" class="required-entry required-entry input-text" type="text"></td>
    </tr>
<tr>
        <td class="label"><label for="_template_lastname">Last Name <span class="required">*</span></label></td>
    <td><input id="_template_lastname" name="address[_template_][lastname]" value="" class="required-entry required-entry input-text" type="text"></td>
    </tr>
<tr>
        <td class="label"><label for="_template_company">Company</label></td>
    <td><input id="_template_company" name="address[_template_][company]" value="" class="input-text" type="text"></td>
    </tr>
<tr>
        <td class="label"><label for="_template_street">Street Address <span class="required">*</span></label></td>
    <td><div class="multi-input"><input id="_template_street0" name="address[_template_][street][0]" value="" class="input-text required-entry" type="text">
</div><div class="multi-input"><input id="_template_street1" name="address[_template_][street][1]" value="" class="input-text" type="text">
</div></td>
    </tr>
<tr>
        <td class="label"><label for="_template_city">City <span class="required">*</span></label></td>
    <td><input id="_template_city" name="address[_template_][city]" value="" class="required-entry required-entry input-text" type="text"></td>
    </tr>
<tr>
        <td class="label"><label for="_template_country_id">Country <span class="required">*</span></label></td>
    <td><select id="_template_country_id" name="address[_template_][country_id]" class="required-entry required-entry countries select" type="select">
<option value="" selected="selected"></option>
<option value="AF">Afghanistan</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>
<option value="AG">Antigua and Barbuda</option>
<option value="AR">Argentina</option>
<option value="AM">Armenia</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="AZ">Azerbaijan</option>
<option value="BS">Bahamas</option>
<option value="BH">Bahrain</option>
<option value="BD">Bangladesh</option>
<option value="BB">Barbados</option>
<option value="BY">Belarus</option>
<option value="BE">Belgium</option>
<option value="BZ">Belize</option>
<option value="BJ">Benin</option>
<option value="BM">Bermuda</option>
<option value="BT">Bhutan</option>
<option value="BO">Bolivia</option>
<option value="BA">Bosnia and Herzegovina</option>
<option value="BW">Botswana</option>
<option value="BV">Bouvet Island</option>
<option value="BR">Brazil</option>
<option value="IO">British Indian Ocean Territory</option>
<option value="VG">British Virgin Islands</option>
<option value="BN">Brunei</option>
<option value="BG">Bulgaria</option>
<option value="BF">Burkina Faso</option>
<option value="BI">Burundi</option>
<option value="KH">Cambodia</option>
<option value="CM">Cameroon</option>
<option value="CA">Canada</option>
<option value="CV">Cape Verde</option>
<option value="KY">Cayman Islands</option>
<option value="CF">Central African Republic</option>
<option value="TD">Chad</option>
<option value="CL">Chile</option>
<option value="CN">China</option>
<option value="CX">Christmas Island</option>
<option value="CC">Cocos Islands</option>
<option value="CO">Colombia</option>
<option value="KM">Comoros</option>
<option value="CG">Congo - Brazzaville</option>
<option value="CK">Cook Islands</option>
<option value="CR">Costa Rica</option>
<option value="HR">Croatia</option>
<option value="CU">Cuba</option>
<option value="CY">Cyprus</option>
<option value="CZ">Czech Republic</option>
<option value="DK">Denmark</option>
<option value="DJ">Djibouti</option>
<option value="DM">Dominica</option>
<option value="DO">Dominican Republic</option>
<option value="EC">Ecuador</option>
<option value="EG">Egypt</option>
<option value="SV">El Salvador</option>
<option value="GQ">Equatorial Guinea</option>
<option value="ER">Eritrea</option>
<option value="EE">Estonia</option>
<option value="ET">Ethiopia</option>
<option value="FK">Falkland Islands</option>
<option value="FO">Faroe Islands</option>
<option value="FJ">Fiji</option>
<option value="FI">Finland</option>
<option value="FR">France</option>
<option value="GF">French Guiana</option>
<option value="PF">French Polynesia</option>
<option value="TF">French Southern Territories</option>
<option value="GA">Gabon</option>
<option value="GM">Gambia</option>
<option value="GE">Georgia</option>
<option value="DE">Germany</option>
<option value="GH">Ghana</option>
<option value="GI">Gibraltar</option>
<option value="GR">Greece</option>
<option value="GL">Greenland</option>
<option value="GD">Grenada</option>
<option value="GP">Guadeloupe</option>
<option value="GU">Guam</option>
<option value="GT">Guatemala</option>
<option value="GN">Guinea</option>
<option value="GW">Guinea-Bissau</option>
<option value="GY">Guyana</option>
<option value="HT">Haiti</option>
<option value="HM">Heard Island and McDonald Islands</option>
<option value="HN">Honduras</option>
<option value="HK">Hong Kong SAR China</option>
<option value="HU">Hungary</option>
<option value="IS">Iceland</option>
<option value="IN">India</option>
<option value="ID">Indonesia</option>
<option value="IR">Iran</option>
<option value="IQ">Iraq</option>
<option value="IE">Ireland</option>
<option value="IL">Israel</option>
<option value="IT">Italy</option>
<option value="CI">Ivory Coast</option>
<option value="JM">Jamaica</option>
<option value="JP">Japan</option>
<option value="JO">Jordan</option>
<option value="KZ">Kazakhstan</option>
<option value="KE">Kenya</option>
<option value="KI">Kiribati</option>
<option value="KW">Kuwait</option>
<option value="KG">Kyrgyzstan</option>
<option value="LA">Laos</option>
<option value="LV">Latvia</option>
<option value="LB">Lebanon</option>
<option value="LS">Lesotho</option>
<option value="LR">Liberia</option>
<option value="LY">Libya</option>
<option value="LI">Liechtenstein</option>
<option value="LT">Lithuania</option>
<option value="LU">Luxembourg</option>
<option value="MO">Macao SAR China</option>
<option value="MK">Macedonia</option>
<option value="MG">Madagascar</option>
<option value="MW">Malawi</option>
<option value="MY">Malaysia</option>
<option value="MV">Maldives</option>
<option value="ML">Mali</option>
<option value="MT">Malta</option>
<option value="MH">Marshall Islands</option>
<option value="MQ">Martinique</option>
<option value="MR">Mauritania</option>
<option value="MU">Mauritius</option>
<option value="YT">Mayotte</option>
<option value="FX">Metropolitan France</option>
<option value="MX">Mexico</option>
<option value="FM">Micronesia</option>
<option value="MD">Moldova</option>
<option value="MC">Monaco</option>
<option value="MN">Mongolia</option>
<option value="MS">Montserrat</option>
<option value="MA">Morocco</option>
<option value="MZ">Mozambique</option>
<option value="MM">Myanmar</option>
<option value="NA">Namibia</option>
<option value="NR">Nauru</option>
<option value="NP">Nepal</option>
<option value="NL">Netherlands</option>
<option value="AN">Netherlands Antilles</option>
<option value="NC">New Caledonia</option>
<option value="NZ">New Zealand</option>
<option value="NI">Nicaragua</option>
<option value="NE">Niger</option>
<option value="NG">Nigeria</option>
<option value="NU">Niue</option>
<option value="NF">Norfolk Island</option>
<option value="KP">North Korea</option>
<option value="MP">Northern Mariana Islands</option>
<option value="NO">Norway</option>
<option value="OM">Oman</option>
<option value="PK">Pakistan</option>
<option value="PW">Palau</option>
<option value="PA">Panama</option>
<option value="PG">Papua New Guinea</option>
<option value="PY">Paraguay</option>
<option value="PE">Peru</option>
<option value="PH">Philippines</option>
<option value="PN">Pitcairn</option>
<option value="PL">Poland</option>
<option value="PT">Portugal</option>
<option value="PR">Puerto Rico</option>
<option value="QA">Qatar</option>
<option value="RE">Reunion</option>
<option value="RO">Romania</option>
<option value="RU">Russia</option>
<option value="RW">Rwanda</option>
<option value="SH">Saint Helena</option>
<option value="KN">Saint Kitts and Nevis</option>
<option value="LC">Saint Lucia</option>
<option value="PM">Saint Pierre and Miquelon</option>
<option value="VC">Saint Vincent and the Grenadines</option>
<option value="WS">Samoa</option>
<option value="SM">San Marino</option>
<option value="ST">Sao Tome and Principe</option>
<option value="SA">Saudi Arabia</option>
<option value="SN">Senegal</option>
<option value="SC">Seychelles</option>
<option value="SL">Sierra Leone</option>
<option value="SG">Singapore</option>
<option value="SK">Slovakia</option>
<option value="SI">Slovenia</option>
<option value="SB">Solomon Islands</option>
<option value="SO">Somalia</option>
<option value="ZA">South Africa</option>
<option value="GS">South Georgia and the South Sandwich Islands</option>
<option value="KR">South Korea</option>
<option value="ES">Spain</option>
<option value="LK">Sri Lanka</option>
<option value="SD">Sudan</option>
<option value="SR">Suriname</option>
<option value="SJ">Svalbard and Jan Mayen</option>
<option value="SZ">Swaziland</option>
<option value="SE">Sweden</option>
<option value="CH">Switzerland</option>
<option value="SY">Syria</option>
<option value="TW">Taiwan</option>
<option value="TJ">Tajikistan</option>
<option value="TZ">Tanzania</option>
<option value="TH">Thailand</option>
<option value="TG">Togo</option>
<option value="TK">Tokelau</option>
<option value="TO">Tonga</option>
<option value="TT">Trinidad and Tobago</option>
<option value="TN">Tunisia</option>
<option value="TR">Turkey</option>
<option value="TM">Turkmenistan</option>
<option value="TC">Turks and Caicos Islands</option>
<option value="TV">Tuvalu</option>
<option value="VI">U.S. Virgin Islands</option>
<option value="UG">Uganda</option>
<option value="UA">Ukraine</option>
<option value="AE">United Arab Emirates</option>
<option value="GB">United Kingdom</option>
<option value="US">United States</option>
<option value="UM">United States Minor Outlying Islands</option>
<option value="UY">Uruguay</option>
<option value="UZ">Uzbekistan</option>
<option value="VU">Vanuatu</option>
<option value="VA">Vatican</option>
<option value="VE">Venezuela</option>
<option value="VN">Vietnam</option>
<option value="WF">Wallis and Futuna</option>
<option value="EH">Western Sahara</option>
<option value="YE">Yemen</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
</select></td>
    </tr>
<tr>
<td class="label"><label for="_template_region">State/Province</label>
</td><td><input id="_template_region" name="address[_template_][region]" value="" class="input-text" type="text"></td>
</tr>
<tr>
        <td colspan="2"><input id="_template_region_id" name="address[_template_][region_id]" value="" class="" type="hidden"></td>
    </tr>
<tr>
        <td class="label"><label for="_template_postcode">Zip/Postal Code <span class="required">*</span></label></td>
    <td><input id="_template_postcode" name="address[_template_][postcode]" value="" class="required-entry required-entry input-text" type="text"></td>
    </tr>
<tr>
        <td class="label"><label for="_template_telephone">Telephone <span class="required">*</span></label></td>
    <td><input id="_template_telephone" name="address[_template_][telephone]" value="" class="required-entry required-entry input-text" type="text"></td>
    </tr>
<tr>
        <td class="label"><label for="_template_fax">Fax</label></td>
    <td><input id="_template_fax" name="address[_template_][fax]" value="" class="input-text" type="text"></td>
    </tr>
        </tbody></table>
    </fieldset>
</div>    <button id="cancel_add_address_template_" type="button" class="scalable cancel delete-address" onclick="customerAddresses.cancelAdd(this)" style=""><span>Cancel</span></button>    </div>


<!-- -->
<script type="text/javascript">
/*
var deleteButtonId = 1;

var addressesModel = Class.create();
addressesModel.prototype = {
    initialize : function() {
        this.activeItem   = null;
        this.itemTemplate = $('address_item_template');
        this.formTemplate = $('address_form_template');
        this.itemContainer= $('address_list');
        this.formContainer= $('address_form_container');
        this.baseItemId   = 'new_item';
        this.itemContentTemplate = new Template('#{firstname} #{lastname}<br/>#{street0} #{street1}<br/>#{city}, #{region} #{postcode}<br/>T: #{telephone}');

        this.onNewAddressClick  = this.addNewAddress.bindAsEventListener(this);
        this.onItemMouseOver    = this.itemMouseOver.bindAsEventListener(this);
        this.onItemMouseOut     = this.itemMouseOut.bindAsEventListener(this);
        this.onItemMouseClick   = this.itemMouseClick.bindAsEventListener(this);
        this.onItemFormFieldChange = this.syncFormData.bindAsEventListener(this);

        this.loader = new varienLoader(true);
        this.regionsUrl = 'http://localhost/magento/index.php/admin/json/countryRegion/';

        this.reloadItemList(1);

        for(var i=0,n=this.itemList.length; i<n; i++){
            if(this.itemList[i].id){
                this.addItemObservers(this.itemList[i]);
                this.initItem(this.itemList[i]);
            }
        }
        if($('add_new_address_button')){
            Event.observe('add_new_address_button', 'click', this.onNewAddressClick)
        }

        this.setActiveItem(this.itemList[0]);
        this.setAddressAsDefault();
        this.bindCountryRegionRelation();
    },

    reloadItemList : function(initial){
        this.itemList = $$('#address_list li');
        if( initial ) {
            this.itemCount = this.itemList.length;
        }
        if(!this.itemList.length){
            if($('no_address_message')){
                $('no_address_message').show();
            }
            else {
                this.formContainer.innerHTML+= '<div id="no_address_message">This customer has no saved addresses.</div>'
            }
        }
    },

    initItem : function(item){
        if(item && $('form_'+item.id)){
            item.formBlock = $('form_'+item.id);
            Element.hide($('form_'+item.id));
            $('form_'+item.id).statusBar = item;
            $('form_'+item.id).addressItem = item;
        }
    },

    addItemObservers : function(item){
        if(item.id){
            Event.observe(item, 'mouseover', this.onItemMouseOver);
            Event.observe(item, 'mouseout', this.onItemMouseOut);
            Event.observe(item, 'click', this.onItemMouseClick);
        }
    },

    addNewAddress : function(event){
        if(this.canCreateNewAddress){
            this.itemCount++;
            if($('no_address_message')){
                $('no_address_message').hide();
            }

            // create new form elements
            var newForm = document.createElement('div');
            newForm.id = 'form_'+this.baseItemId+this.itemCount;
            newForm.innerHTML = this.prepareTemplate(this.formTemplate.innerHTML);
            this.formContainer.appendChild(newForm);

            $('_item'+this.itemCount+'firstname').value = $('_accountfirstname').value;
            $('_item'+this.itemCount+'lastname').value = $('_accountlastname').value;

            Element.hide(newForm);

            // create new item
            var newItem = document.createElement('li');
            newItem.isNewAddress = true; // set is new flag
            newItem.id = this.baseItemId+this.itemCount;

            deleteButtonId ++;
            var template = this.prepareTemplate(this.itemTemplate.innerHTML).replace('delete_button', 'delete_button'+ deleteButtonId);

            newItem.innerHTML = template;
            newItem.formBlock = newForm;
            this.itemContainer.appendChild(newItem);

            newForm.statusBar = newItem;
            newForm.addressItem = newItem;

            this.addItemObservers(newItem);
            this.setActiveItem(newItem);
            this.bindCountryRegionRelation(newForm.id);

            if( $('_item'+this.itemCount+'firstname').value ) this.syncFormData($('_item'+this.itemCount+'firstname'));
            if( $('_item'+this.itemCount+'lastname').value ) this.syncFormData($('_item'+this.itemCount+'lastname'));
        }
        this.reloadItemList();
        //Event.stop(event);
    },

    prepareTemplate : function(template){
        return template.replace(/_template_/g, '_item'+this.itemCount);
    },

    canCreateNewAddress : function(){
        return true;
    },

    itemMouseOver : function(event){
        var element = Event.findElement(event, 'li');
        Element.addClassName(element, 'over');
    },

    itemMouseOut : function(event){
        var element = Event.findElement(event, 'li');
        Element.removeClassName(element, 'over');
    },

    itemMouseClick : function(event){
        if (!Event) {
            return;
        }
        var element = Event.findElement(event, 'li'); // find top item
        var elem = Event.element(event); // exact element clicked

        if ( ((elem.tagName == 'A') && elem.id.match(/^delete_button([0-9]*?)$/)) || ((elem.tagName == 'IMG') && elem.id.match(/^delete_button([0-9]*?)$/)) ) {
            this.deleteAddress(element);
            Event.stop(event);
        }
        else if(elem.tagName == 'INPUT') {
            this.setAddressAsDefault(element);
        }
        else {
            this.setActiveItem(element);
        }
    },

    setAddressAsDefault : function(){
        for(var i=0; i<this.itemList.length;i++){
            if(this.itemList[i].id){
                var inputs = $(this.itemList[i].id).getElementsBySelector('input');
                var isActive = false;
                for(var j in inputs){
                    if(inputs[j].type=='radio' && inputs[j].checked && this.itemList.length > 1){
                        isActive = true;
                    }
                }
                this.toggleDeleteButton(this.itemList[i], !isActive);
            }
        }
    },

    toggleDeleteButton : function(item, flag){
        if(flag){
            $(item).getElementsByClassName('btn-remove-address').each(Element.show);
            $(item.formBlock).getElementsBySelector('.delete-address').each(Element.show);
        } else {
            $(item).getElementsByClassName('btn-remove-address').each(Element.hide);
            $(item.formBlock).getElementsBySelector('.delete-address').each(Element.hide);
        }
    },

    setActiveItem : function(item){
        if(this.activeItem){
            Element.removeClassName(this.activeItem, 'on');
            if($('form_'+this.activeItem.id)){
                Element.hide($('form_'+this.activeItem.id));
            }
        }
        Element.addClassName(item, 'on');

        if(item && $('form_'+item.id)){
            $('form_'+item.id).changeRelation = item;
            $('form_'+item.id).addressItem = item;
            Element.show($('form_'+item.id));
            //new Effect.Appear($('form_'+item.id), {duration : 0.3 });
            //$('form_'+item.id).focus();
            this.addFieldChangeObserver($('form_'+item.id));
        }

        this.activeItem = item;
    },

    getFormContainerFields : function(container){
        var fields = $$('#'+container.id+' input', '#'+container.id+' select', '#'+container.id+' textarea');
        return fields;
    },

    addFieldChangeObserver : function(container){
        var fields = this.getFormContainerFields(container);
        for(var i in fields){
            Event.observe(fields[i], 'change', this.onItemFormFieldChange);
        }

    },

    syncFormData : function(event){
        var container = false;
        if( event.isTrusted ) {
            var elm = Event.element(event);
        } else {
            var elm = event;
        }

        while(elm.tagName != 'BODY') {
            if(elm.addressItem){
                container = elm;
            }
            elm = elm.parentNode;
        }

        if(container){
            var data = {};
            var fields = this.getFormContainerFields(container);
            for(var i in fields){
                if(fields[i].id){
                    var id = fields[i].id.replace(/^(_item)?[0-9]+/, '');
                    var value = fields[i].getValue();
                    if(fields[i].tagName.toLowerCase()=='select'){
                        data[id] = fields[i].options[fields[i].selectedIndex].text;
                    }
                    else{
                        data[id] = value;
                    }
                }
            }
            var itemContainer = container.addressItem.getElementsBySelector('address');
            if(itemContainer[0]){
                itemContainer[0].innerHTML = this.itemContentTemplate.evaluate(data);
            }
        }
    },

    deleteAddress : function(item){
        if(confirm('Are you sure you want to delete this address?')){
            if( item.isNewAddress){
                if ( this.activeItem == item ) this.formContainer.removeChild(item.formBlock);
            } else {
                if($('deleted_'+item.id)){
                    $('deleted_'+item.id).value = 1;
                    if(item.formBlock){
                        item.formBlock.addClassName('no-display template');
                    }
                }
            }

            if ( this.activeItem == item && item != this.itemList[0] ) this.setActiveItem(this.itemList[0]);
            if ( item == this.itemList[0] && (this.itemList[1]) ) this.setActiveItem(this.itemList[1]);

            this.itemContainer.removeChild(item);
            this.reloadItemList();
            this.setAddressAsDefault();
        }
    },

    cancelAdd : function(button){
        if(confirm('Are you sure you want to cancel adding of this address?')){
            var item = $(this.baseItemId + button.id.replace(new RegExp('[a-z_]*',''), ''));

            if( item.isNewAddress){
                if ( this.activeItem == item ) this.formContainer.removeChild(item.formBlock);
            }
            if ( this.activeItem == item && item != this.itemList[0] ) this.setActiveItem(this.itemList[0]);
            if ( item == this.itemList[0] && (this.itemList[1]) ) this.setActiveItem(this.itemList[1]);

            this.itemContainer.removeChild(item);

            this.reloadItemList();
            this.setAddressAsDefault();
        }
    },

    bindCountryRegionRelation : function(paerntId){
        var countryElements = document.getElementsByClassName('countries');
        for(var i=0;i<=countryElements.length;i++){
            if(countryElements[i]){
                if(!countryElements[i].bindRegions || !countryElements[i].parentBindId || countryElements[i].parentBindId!=paerntId){
                    Event.observe(countryElements[i], 'change', this.reloadRegionField.bind(this));
                    countryElements[i].bindRegions = true;
                    countryElements[i].parentBindId = paerntId;
                }
            }
        }
    },

    reloadRegionField : function(event){
        var countryElement = Event.element(event);
        if(countryElement.id){
            var regionElement  = $(countryElement.id.replace(/country_id/, 'region'));
            if(regionElement){
                this.regionElement = regionElement;
                var url = this.regionsUrl+'parent/'+countryElement.value;
                this.loader.load(url, {}, this.refreshRegionField.bind(this));
            }
        }
    },

    refreshRegionField : function(serverResponse){
        if(serverResponse){
            var data = eval('(' + serverResponse + ')');
            var value = this.regionElement.value;
            var reqLabel = this.regionElement.parentNode.previous(0).getElementsByClassName('required');
            if (data.length) {
                var html = '<select name="'+this.regionElement.name+'" id="'+this.regionElement.id+'" class="required-entry select" title="'+this.regionElement.title+'">';
                html+= '<option value=""></option>';
                for (var i in data){
                    if(data[i].label) {
                        html+= '<option value="'+data[i].value+'"';
                        if(this.regionElement.value && (this.regionElement.value == data[i].value || this.regionElement.value == data[i].label)){
                            html+= ' selected';
                        }
                        html+='>'+data[i].label+'</option>';
                    }
                }
                html+= '</select>';
                if(reqLabel){
                    reqLabel.each(function(item){Element.show(item)});
                }
                new Insertion.Before(this.regionElement, html);
                Element.remove(this.regionElement);
            }
            else{
                var html = '<input type="text" name="'+this.regionElement.name+'" id="'+this.regionElement.id+'" class="input-text" title="'+this.regionElement.title+'">';
                if(reqLabel){
                    reqLabel.each(function(item){Element.hide(item)});
                }
                new Insertion.Before(this.regionElement, html);
                Element.remove(this.regionElement);
            }
        }
    }
}

customerAddresses = new addressesModel();
*/
</script>
</td>
</tr></tbody></table>
</div></form></div>
<script type="text/javascript" language="javascript">
    var editForm = new varienForm('edit_form', 'http://localhost/magento/index.php/admin/customer/validate/');
</script>
                                </div>
                            </div>
                            <div class="section-menu" id="page:left">
                                    <h3>Loan Center</h3>
<ul id="customer_info_tabs" class="tabs">
    <li>
        <a href="#" id="customer_info_tabs_account" name="account" title="Contact Information" class="tab-item-link active">
            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
		</div>Contact Information</span>
        </a>
        
    </li>
    <li>
        <a href="#" id="customer_info_tabs_addresses" name="addresses" title="Business Information" class="tab-item-link">
            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
		</div>Business Information</span>
        </a>
        
    </li>
    <li>
        <a href="#" id="customer_info_tabs_addresses" name="addresses" title="Business Information" class="tab-item-link">
            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
		</div>Collateral Items</span>
        </a>
        
    </li>
    <li>
        <a href="#" id="customer_info_tabs_addresses" name="addresses" title="Business Information" class="tab-item-link">
            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
		</div>Loan</span>
        </a>
        
    </li>
    <li>
        <a href="#" id="customer_info_tabs_addresses" name="addresses" title="Business Information" class="tab-item-link">
            <span><div class="changed" title="The information in this tab has been changed."></div><div class="error" title="This tab contains invalid data. Please solve the problem before saving.">
		</div>Payments</span>
        </a>
        
    </li>
</ul>
<script type="text/javascript" language="javascript">
    customer_info_tabsJsTabs = new varienTabs('customer_info_tabs', 'edit_form', 'customer_info_tabs_account');
</script>
                                <div class="bottom"></div>
                            </div>
                        </div>
                    </div>
                </div>
                        </div>
        <div class="footer">
            <p class="bug-report">
				<a href="http://www.philbsd.com">Developed by PhilBSD</a>
			</p>
			<p class="legality">
				<a href="http://framework.zend.com/" target="varien_external"><img src="img/PoweredBy_ZF_4LightBG.png" class="v-middle" alt="Powered by Zend Framework" /></a><br>				
		</div>

		

	</div>
</body>
</html>